package com.urbainski.componentes.form
{
	import com.urbainski.componentes.form.CSMessage;
	
	import flash.events.Event;

	public class MyStatusChangedEvent extends Event
	{
		
		/**
		 * @author Cristian Elder Urbainski
		 * @since 20/12/2011
		 */
		
		private var _message:CSMessage;
		public static const STATUS_CHANGED:String = "status_changed";
		public static const STATUS_CLEAR:String = "status_clear";
		
		public function MyStatusChangedEvent(type:String, message:CSMessage = null)
		{
			super(type);
			this._message = message;
			return;
		}
		
		public function get message() : CSMessage
		{
			return this._message;
		}
		
		override public function clone() : Event
		{
			return new MyStatusChangedEvent(type, this._message);
		}
	}
}